package com.cskaoyan.mapper;

import com.cskaoyan.bean.pojo.System;
import com.cskaoyan.bean.pojo.SystemExample;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface SystemMapper {
    long countByExample(SystemExample example);

    int deleteByExample(SystemExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(System record);

    int insertSelective(System record);

    List<System> selectByExample(SystemExample example);

    System selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") System record, @Param("example") SystemExample example);

    int updateByExample(@Param("record") System record, @Param("example") SystemExample example);

    int updateByPrimaryKeySelective(System record);

    int updateByPrimaryKey(System record);


    //向磊 admin/config/mall (get请求)
    String selectConfigMall(@Param("id") int id);

    //向磊 admin/config/mall (post请求)
    void updateMall(@Param("keyValue") String keyValue, @Param("id") int id);


    //向磊 admin/config/express (get请求)
    String selectConfigExpress(@Param("id") int id);

    //向磊 admin/config/express (post请求)
    void updateExpress(@Param("keyValue") String keyValue, @Param("id") int id);

    //向磊 admin/config/order (get请求)
    String selectConfigOrder(@Param("id") int id);

    //向磊 admin/config/order (post请求)
    void updateOrder(@Param("keyValue") String keyValue, @Param("id") int id);

    //向磊 admin/config/wx (get请求)
    String selectConfigWx(@Param("id") int id);

    //向磊 admin/config/wx (post请求)
    void updateWx(@Param("keyValue") String keyValue, @Param("id") int id);

    List<Map<String, String>> selectKeyAndValue();

    int updateUnpaidValue(@Param("latestUppaidOrderNumber") int latestUppaidOrderNumber);
}